//选择要查的具体时间下拉框
var formDetaisCombo;
var formCatalog=[[1,'年报表'],[2,'季报表'],[3,'月报表']];

var formDetails=new Array();
//年报表
formDetails[1]=[['2009','2009'],['2010','2010'],['2011','2011'],
['2012','2012'],['2013','2013'],['2014','2014'],['2015','2015'],
['2016','2016'],['2017','2017']];
//季报表
formDetails[2]=[['01','第一季度'],['02','第二季度'],
['03','第三季度'],['04','第四季度']];
//月报表
formDetails[3]=[['01','一月份'],['02','二月份'],['03','三月份'],
['04','四月份'],['05','五月份'],['06','六月份'],
['07','七月份'],['08','八月份'],['09','九月份'],
['10','十月份'],['11','十一月份'],['12','十二月份']];

//报表类型下拉框
var formCatalogCombo=new Ext.form.ComboBox({
store:Ext.data.SimpleStore({
fields:["catalogId","catalogName"],
data:formCatalog
}),
listeners:{
	select:function(combo,record,index){
		formDetaisCombo.clearValue();
		formDetaisCombo.store.loadData(formDetails[record.data.catalogId]);
	}
},
vauleField:"catalogId",
displayField:'catalogName',
itemCls:'float-left',//向左浮动
clearCls:'allow-float',//允许浮动
mode:'local',
forceSelection:true,
blankText:'请选择报表种类',
hiddenName:'catalogId',
editable:false,
triggerAction:'all',
fieldLabel:'请选择报表种类',
name:'catalogId',
id:'catalogId',
width:100
});
//选择要查的具体时间下拉框
formDetaisCombo=new Ext.form.ComboBox({
store:Ext.data.SimpleStore({
fields:["detailValue","detailName"],
data:[]
}),
valueField:'detailValue',
displayField:'detailName',
itemCls:'float-left',//向左浮动
clearCls:'allow-float',//允许浮动
mode:'local',
forceSelection:true,
blankText:'请选择具体时间',
hiddenName:'detailValue',
editable:true,
triggerAction:'all',
fieldLabel:'请选择具体时间',
name:'detailValue',
id:'detailValue',
width:100
});
Ext.getCmp("detailValue")
